public class Fibonacci {
    public static void main(String[] args) {
        int i = 0;
        int j = 1;
        int k = 1;
        int ret = 0;
        System.out.println("斐波那契数列为");
        System.out.print(i+",");
        System.out.print(j+",");
        for(k = 1;k <=1000;k = i+j){
            i = j;
            j = k;
            System.out.print(k+",");
        }
    }
}
